package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ServletComponentScan //让boot识别@WebServlet  @WebFilter   @WebListener
@EnableTransactionManagement
public class ReggieApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext ac=SpringApplication.run(ReggieApplication.class,args);
        String[] beanDefinitionNames = ac.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
        }
        log.info("项目启动成功");
    }

}
